package com.ruoyi.system.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * person对象 person
 *
 * @author ruoyi
 * @date 2022-04-16
 */
public class Person extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long personId;

    /**
     * 批量删除使用
     */
    private Long[] personIds;

    /**
     * 微信id
     */
    private String openId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String personName;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 年龄
     */
    @Excel(name = "年龄")
    private Integer personAge;

    /**
     * 工作地点
     */
    @Excel(name = "工作地点")
    private String workAddress;

    /**
     * 身份证号码
     */
    @Excel(name = "身份证号码")
    private String cardId;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private Long phoneNumber;

    /**
     * 家庭住址
     */
    @Excel(name = "家庭住址")
    private String address;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称")
    private String enterpriseName;

    /**
     * 类别id
     */
    private Long detectionCycleId;

    /**
     * 类别id
     */
    @Excel(name = "类别名称")
    private String detectionCycleName;

    @Excel(name = "当前期数应检次数")
    private String frequencyYj;


    /**
     * 当前期数已检次数
     */
    @Excel(name = "当前期数已检次数")
    private Long frequency;

    /**
     * 0已完成1未完成
     */
    private Long falg;

    /**
     * 部门id
     */
    private Long deptId;


    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private Integer delFlag;

    /**
     * 管理员删除理由
     */
    private String reason;

    /**
     * 审核通过/未审核  0通过1未审核
     */
    private Integer examine;


    /**
     * 0新增1导入2小程序录入3经营录入
     */
    @Excel(name = "数据来源")
    private String source;

    /**
     * 工作单位所在网格
     */
    @Excel(name = "工作单位所在网格")
    private String workGrid;

    /**
     * 工作单位所在网格
     */
    @Excel(name = "住址所在网格")
    private String addressGrid;


    /**
     * $table.subTable.functionName信息
     */
    private List<DetectionCycle> detectionCycleList;

    /**
     * 当前期核酸信息
     */
    private List<Ptesting> ptestingList;

    private  String yzm;

    public String getWorkGrid() {
        return workGrid;
    }

    public void setWorkGrid(String workGrid) {
        this.workGrid = workGrid;
    }

    public String getAddressGrid() {
        return addressGrid;
    }

    public void setAddressGrid(String addressGrid) {
        this.addressGrid = addressGrid;
    }

    public String getYzm() {
        return yzm;
    }

    public void setYzm(String yzm) {
        this.yzm = yzm;
    }

    public List<Ptesting> getPtestingList() {
        return ptestingList;
    }

    public void setPtestingList(List<Ptesting> ptestingList) {
        this.ptestingList = ptestingList;
    }

    public Long[] getPersonIds() {
        return personIds;
    }

    public void setPersonIds(Long[] personIds) {
        this.personIds = personIds;
    }

    public String getFrequencyYj() {
        return frequencyYj;
    }

    public void setFrequencyYj(String frequencyYj) {
        this.frequencyYj = frequencyYj;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDetectionCycleName() {
        return detectionCycleName;
    }

    public void setDetectionCycleName(String detectionCycleName) {
        this.detectionCycleName = detectionCycleName;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setPersonAge(Integer personAge) {
        this.personAge = personAge;
    }

    public Integer getPersonAge() {
        return personAge;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setPhoneNumber(Long phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getPhoneNumber() {
        return phoneNumber;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setDetectionCycleId(Long detectionCycleId) {
        this.detectionCycleId = detectionCycleId;
    }

    public Long getDetectionCycleId() {
        return detectionCycleId;
    }

    public void setFrequency(Long frequency) {
        this.frequency = frequency;
    }

    public Long getFrequency() {
        return frequency;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

    public void setExamine(Integer examine) {
        this.examine = examine;
    }

    public Integer getExamine() {
        return examine;
    }

    public void setFalg(Long falg) {
        this.falg = falg;
    }

    public Long getFalg() {
        return falg;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public List<DetectionCycle> getDetectionCycleList() {
        return detectionCycleList;
    }

    public void setDetectionCycleList(List<DetectionCycle> detectionCycleList) {
        this.detectionCycleList = detectionCycleList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("personId", getPersonId()).append("openId", getOpenId()).append("personName", getPersonName()).append("sex", getSex()).append("personAge", getPersonAge()).append("workAddress", getWorkAddress()).append("cardId", getCardId()).append("phoneNumber", getPhoneNumber()).append("address", getAddress()).append("enterpriseName", getEnterpriseName()).append("detectionCycleId", getDetectionCycleId()).append("frequency", getFrequency()).append("deptId", getDeptId()).append("delFlag", getDelFlag()).append("reason", getReason()).append("examine", getExamine()).append("falg", getFalg()).append("source", getSource()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("detectionCycleList", getDetectionCycleList()).toString();
    }

    public Person(Integer delFlag, Integer examine) {
        this.delFlag = delFlag;
        this.examine = examine;
    }

    public Person(String cardId, Integer delFlag, Integer examine) {
        this.cardId = cardId;
        this.delFlag = delFlag;
        this.examine = examine;
    }

    public Person(Integer delFlag, Integer examine, Long detectionCycleId) {
        this.delFlag = delFlag;
        this.examine = examine;
        this.detectionCycleId = detectionCycleId;
    }

    public Person(Long detectionCycleId) {
        this.detectionCycleId = detectionCycleId;
    }

    public Person() {
    }
}
